package org.hq.service.sql.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.hq.pojo.WebName;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import static org.junit.jupiter.api.Assertions.*;
@SpringBootTest
class WebNameServiceImplTest {
    @Autowired
    private WebNameServiceImpl webNameService;
    @Test
    void getBaseMapper() {
    }

    @Test
    void getEntityClass() {
    }

    @Test
    void getSqlSessionFactory() {
    }

    @Test
    void retBool() {
    }

    @Test
    void currentMapperClass() {
    }

    @Test
    void getMapperClass() {
    }

    @Test
    void currentModelClass() {
    }

    @Test
    void sqlSessionBatch() {
    }

    @Test
    void closeSqlSession() {
    }

    @Test
    void sqlStatement() {
    }

    @Test
    void saveBatch() {
    }

    @Test
    void getSqlStatement() {
    }

    @Test
    void saveOrUpdate() {
    }

    @Test
    void saveOrUpdateBatch() {
    }

    @Test
    void updateBatchById() {
    }

    @Test
    void getOne() {
        //按条件查询
        QueryWrapper<WebName> wrapper = new QueryWrapper();
        wrapper.eq("name","四虎");
        WebName name = webNameService.getOne(wrapper);
        System.out.println(name);
    }

    @Test
    void getOneOpt() {
    }

    @Test
    void getMap() {
    }

    @Test
    void getObj() {
    }

    @Test
    void executeBatch() {
    }

    @Test
    void testExecuteBatch() {
    }

    @Test
    void testExecuteBatch1() {
    }

    @Test
    void removeById() {
    }

    @Test
    void removeBatchByIds() {
    }

    @Test
    void testRemoveBatchByIds() {
    }

    @Test
    void save() {
        //保存数据库表 一条信息 web_name
        webNameService.save(new WebName("四虎"));
    }

    @Test
    void testSaveBatch() {
    }

    @Test
    void testSaveOrUpdateBatch() {
    }

    @Test
    void testRemoveById() {
    }

    @Test
    void testRemoveById1() {
    }

    @Test
    void testRemoveById2() {
    }

    @Test
    void removeByMap() {
    }

    @Test
    void remove() {
    }

    @Test
    void removeByIds() {
    }

    @Test
    void testRemoveByIds() {
    }

    @Test
    void testRemoveBatchByIds1() {
    }

    @Test
    void testRemoveBatchByIds2() {
    }

    @Test
    void testRemoveBatchByIds3() {
    }

    @Test
    void testRemoveBatchByIds4() {
    }

    @Test
    void updateById() {
    }

    @Test
    void update() {
    }

    @Test
    void testUpdate() {
    }

    @Test
    void testUpdateBatchById() {
    }

    @Test
    void getById() {
    }

    @Test
    void getOptById() {
    }

    @Test
    void listByIds() {
    }

    @Test
    void listByMap() {
    }

    @Test
    void testGetOne() {
    }

    @Test
    void testGetOneOpt() {
    }

    @Test
    void exists() {
    }

    @Test
    void count() {
    }

    @Test
    void testCount() {
    }

    @Test
    void list() {
    }

    @Test
    void testList() {
    }

    @Test
    void testList1() {
    }

    @Test
    void testList2() {
    }

    @Test
    void page() {
    }

    @Test
    void testPage() {
    }

    @Test
    void listMaps() {
    }

    @Test
    void testListMaps() {
    }

    @Test
    void testListMaps1() {
    }

    @Test
    void testListMaps2() {
    }

    @Test
    void listObjs() {
    }

    @Test
    void testListObjs() {
    }

    @Test
    void testListObjs1() {
    }

    @Test
    void testListObjs2() {
    }

    @Test
    void pageMaps() {
    }

    @Test
    void testPageMaps() {
    }

    @Test
    void query() {
    }

    @Test
    void lambdaQuery() {
    }

    @Test
    void testLambdaQuery() {
    }

    @Test
    void ktQuery() {
    }

    @Test
    void ktUpdate() {
    }

    @Test
    void testUpdate1() {
    }

    @Test
    void lambdaUpdate() {
    }

    @Test
    void testSaveOrUpdate() {
    }
}